import myAxios from '@/utils/myAxios'

export const ArticleListAPI = params => {
  return myAxios.get('/admin/interview/query', { params })
}
export const addAritcleAPI = data => {
  return myAxios.post('/admin/interview/create', data)
}
export const delArticleAPI = id => {
  return myAxios({
    method: 'delete',
    url: '/admin/interview/remove',
    data: { id }
  })
}
export const articleAPI = id => {
  return myAxios({
    url: '/admin/interview/show',
    params: {
      id
    }
  })
}
export const updateAPI = data => {
  return myAxios({
    method: 'put',
    url: '/admin/interview/update',
    data
  })
}
